#include "KdTraversalStack.h"
#include <assert.h>

KdTraversalStack::KdTraversalStack() : cur(-1)
{
}

KdTraversalStack::~KdTraversalStack()
{
}

void KdTraversalStack::push(const KdNode* node, float near, float far)
{
//	assert(cur + 1 < MAXKDTREEDEPTH);
	
	++cur;
	
	stack[cur].node = node;
	stack[cur].near = near;
	stack[cur].far = far;
}

